package com.xiaohe66.web.domain.sys.sec.repository;

import com.xiaohe66.web.domain.sys.sec.agg.SysConfig;
import com.xiaohe66.web.domain.sys.sec.value.SysConfigId;
import com.xiaohe66.web.domain.sys.sec.value.SysConfigKey;
import com.xiaohe66.web.domain.sys.sec.value.SysJwtSecret;
import com.xiaohe66.web.domain.sys.sec.value.SysSecretKey;
import com.xiaohe66.web.integration.domain.Repository;

/**
 * @author xiaohe
 * @since 2023-12-27 17:41
 */
public interface SysConfigRepository extends Repository<SysConfig, SysConfigId> {

    SysConfig getByKey(SysConfigKey key);

    void saveSysSecretKey(SysSecretKey secretKey);

    SysSecretKey getSysSecretKey();

    void saveJwtSecret(SysJwtSecret jwtSecret);

    SysJwtSecret getSysJwtSecret();

}
